package com.laowang.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * 店铺对象 my_cyh_shop_cattle
 *
 * @author laowang
 * @date 2024-04-11
 */
@NoArgsConstructor
@Data
public class MyCyhShopCattle implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 商家类型
     */
    @Excel(name = "商家类型")
    @ApiModelProperty(value = "商家类型", required = false)
    private Integer cate;

    /**
     * 店铺名称
     */
    @Excel(name = "店铺名称")
    @ApiModelProperty(value = "店铺名称", required = false)
    private String name;

    /**
     * 0否,1是
     */
    @Excel(name = "0否,1是")
    @ApiModelProperty(value = "0否,1是", required = false)
    private Integer isMore;

    /**
     * 单店多店
     */
    @Excel(name = "单店多店")
    @ApiModelProperty(value = "单店多店", required = false)
    private Integer number;


    private Integer isOpen;//已开数量

    /**
     * 方案
     */
    @Excel(name = "方案")
    @ApiModelProperty(value = "方案", required = false)
    private Integer planId;

    /**
     * 支付款
     */
    @Excel(name = "支付款")
    @ApiModelProperty(value = "支付款", required = false)
    private BigDecimal amount;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "车友会用户", required = false)
    private Integer userId;

    private Integer pay;//1支付,0未支付

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "时间", required = false)
    private Date created;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Transient
    private List<MyCyhShop> myCyhShopList;

}
